Asserted

class Asserted

A utility class to assert certain conditions

Author

"Martin Krischik" «krischik@users.sourceforge.net»

Since

1.0

Constructors

Link copied to clipboard
private constructor()
Utility class, do not create

Properties

Link copied to clipboard
private val TAG: String
TAG as class name for logging

Functions

Link copied to clipboard
protected open fun clone(): Any
Link copied to clipboard
open fun equal(left: String, right: String)
open fun equal(left: Long, right: Long)
open fun equal(left: String, right: String, name: String)
open fun equal(left: Long, right: Long, name: String)
test if a string lengths is inside the range min … max
open fun equal(left: Enum<out Any>, right: Enum<out Any>, name: String)
test if two enums are the same.
Link copied to clipboard
open fun equals(obj: Any): Boolean
Link copied to clipboard
protected open fun finalize()
Link copied to clipboard
fun getClass(): Class<out Any>
Link copied to clipboard
open fun greaterEqual(left: Long, right: Long)
open fun greaterEqual(left: Long, right: Long, name: String)
test if a string lengths is inside the range min … max
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun isFalse(value: Boolean)
open fun isFalse(value: Boolean, name: String)
test if a string lengths is inside the range min … max
Link copied to clipboard
open fun isInstance(value: Any, type: Class<out Any>)
open fun isInstance(value: Any, type: Class<out Any>, name: String)
test if a string lengths is inside the range min … max
Link copied to clipboard
open fun isNatural(value: Int)
open fun isNatural(value: Int, name: String)
test if a numeric value is greater or equal 0
Link copied to clipboard
open fun isNull(value: Any)
open fun isNull(value: Any, name: String)
test if an instance is null
Link copied to clipboard
open fun isPositive(value: Int)
open fun isPositive(value: Int, name: String)
test if a numeric value is greater or equal 1
Link copied to clipboard
open fun isTrue(value: Boolean)
open fun isTrue(value: Boolean, name: String)
test if a string lengths is inside the range min … max
Link copied to clipboard
open fun notEmpty(value: String)
open fun notEmpty(value: String, name: String)
test if a string lengths is not empty
Link copied to clipboard
fun notify()
Link copied to clipboard
fun notifyAll()
Link copied to clipboard
open fun notNull(value: Any)
open fun notNull(value: Any, name: String)
test if an instance is not null
Link copied to clipboard
open fun range(value: Byte, min: Byte, max: Byte)
open fun range(value: Double, min: Double, max: Double)
open fun range(value: Float, min: Float, max: Float)
open fun range(value: Int, min: Int, max: Int)
open fun range(value: Long, min: Long, max: Long)
open fun range(value: Short, min: Short, max: Short)
open fun range(value: Byte, min: Byte, max: Byte, name: String)
open fun range(value: Double, min: Double, max: Double, name: String)
open fun range(value: Float, min: Float, max: Float, name: String)
open fun range(value: Int, min: Int, max: Int, name: String)
open fun range(value: Long, min: Long, max: Long, name: String)
open fun range(value: Short, min: Short, max: Short, name: String)
test if a numeric value is inside the range min … max
open fun range(value: CharSequence, min: Int, max: Int)
open fun range(value: Array<Any>, min: Int, max: Int)
open fun range(value: CharSequence, min: Int, max: Int, name: String)
open fun range(value: Array<Any>, min: Int, max: Int, name: String)
test if a string length is inside the range min … max
Link copied to clipboard
open fun rangeOrNull(value: CharSequence, min: Int, max: Int)
open fun rangeOrNull(value: CharSequence, min: Int, max: Int, name: String)
test if a string length is inside the range min … max
Link copied to clipboard
open fun toString(): String
Link copied to clipboard
fun wait()